package com.gt.quality.apim.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 应用数据源关联表(GptApplyManage)表实体类
 *
 * @author makejava
 * @since 2026-12-03 17:00:38
 */
@Data
@Accessors(chain = true)
@Schema(title = "GptApplyManage", description = "应用数据源关联表")
@TableName(value = "gpt_apply_manage", autoResultMap = true)
public class GptApplyManage implements Serializable {
    @Serial
	private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(title = "id",description = "主键")
    @JsonSerialize(using= ToStringSerializer.class)
    private String id;

    @TableField(value = "apply_name")
    @Schema(title = "apply_name",description = "应用名称")
    private String applyName;

    @TableField(value = "apply_code")
    @Schema(title = "apply_code",description = "DB-GPT应用编码")
    private String applyCode;

    @TableField(value = "db_name")
    @Schema(title = "db_name",description = "数据源名称")
    private String dbName;

    @TableField(value = "gpt_type")
    @Schema(title = "gpt_type",description = "大模型类型")
    private String gptType;

}


